package com.aaa.behind.dao;

import com.aaa.entity.BrandMap;
import com.aaa.entity.GBrand;
import com.aaa.entity.GSort;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 * 品牌 Mapper 接口
 * </p>
 *
 * @author whj
 * @since 2023-01-30
 */
public interface GBrandMapper extends BaseMapper<GBrand> {

    IPage findBrandsWithCondition(IPage page,@Param("map") BrandMap map);


    @Select("select * from g_brand")
    List<GBrand> findAllBrands();


    @Select("select * from g_sort")
    List<GSort> findAllSort();
}
